package com.learn.ioc.parsebeandefinition.constructorarg;

import com.learn.ioc.bean.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author: ganquanzhong
 * @date: 2020/7/8 10:32
 */
public class ConstructorArgTest {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext act = new ClassPathXmlApplicationContext("spring-beandefinition.xml");

		User user01 = act.getBean("user01", User.class);
		System.out.println(user01.toString());
	}
}
/* Output:
【user-afterPropertiesSet】-实现InitializingBean接口的afterPropertiesSet方法，在bean初始化会自动调用该方法！
User{uid=2020102, username='阿中', pwd='***', tel='15571398101', addr='中国'}
*///~